package com.nbufe.controller;

import com.nbufe.domain.ResponseResult;
import com.nbufe.domain.vo.process.ProcessEmissionOriginVo;
import com.nbufe.service.EmissionOriginService;
import com.nbufe.service.ProcessService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Author luzhiheng
 * @Date 2023/12/27 10:18
 */
@RestController
@RequestMapping("/emission_origin")
public class EmissionOriginController {

    @Resource
    private EmissionOriginService emissionOriginService;

    @DeleteMapping("/delete/{processId}/{emissionId}")
    public ResponseResult deleteEmissionOrigin(@PathVariable Long processId, @PathVariable Long emissionId) {
        emissionOriginService.deleteByProcessIdAndEmissionId(processId, emissionId);
        return ResponseResult.okResult();
    }

//    @DeleteMapping("/delete/{processId}/{emissionId}")
//    public ResponseResult deleteEmissionOrigin(@PathVariable Long processId, @PathVariable Long emissionId) {
//        emissionOriginService.deleteByProcessIdAndEmissionId(processId, emissionId);
//        return ResponseResult.okResult();
//    }

}
